Dates and Times
This web pages displays the exact dates and times. If you come to this web page everyday. The Dates and times will change. This page gets the exact date and time from
the website where I registered my domain. It is not HTML code, it is PHP coding.
\n";
echo "1. This will display as today's day, month, number of day, and full year.
\n";
echo date("l, F jS, Y");"\n";
echo "
\n\n";
echo "2. This will display the day of the month with 2 digits with leading zeros. Example 01
\n";
echo date("d");"\n";
echo "
\n\n";
echo "3. This will display the day of the month without zeros. Example 1 to 31.
\n";
echo date("j");"\n";
echo "
\n\n";
echo "4. This will display the day with three letters. Example Sun
\n";
echo date("D");"\n";
echo "
\n\n";
echo "5. This will display the full name of the day. Example Sunday
\n";
echo date("l");"\n";
echo "
\n\n";
echo "6. This will display the full name of the month. Example January
\n";
echo date("F");"\n";
echo "
\n\n";
echo "7. This will display the month with the first three letters. Example Jan
\n";
echo date("M");"\n";
echo "
\n\n";
echo "8. This will display the exact day number in a year. Example 0 through 365
\n";
echo date("z");"\n";
echo "
\n\n";
echo "9. This will display the numeric representation of the day of the week. Example 0 for Sunday, 6 for Saturday.
\n";
echo date("w");"\n";
echo "
\n\n";
echo "10. This will display the week number in a year. Example 42 is the 42nd week of the year.
\n";
echo date("W");"\n";
echo "
\n\n";
echo "11. This will display the numeric representation of a month with leading zeros. Example 01 to 12.
\n";
echo date("m");"\n";
echo "
\n\n";
echo "12. This will display the numeric representation of a month without leading zeros. Example 1 to 12.
\n";
echo date("n");"\n";
echo "
\n\n";
echo "13. This will display the last day in the given month. Example 28, 29, 30 or 31.
\n";
echo date("t");"\n";
echo "
\n\n";
echo "14. This will display whether if it is a leap year. Example if 1 is a leap year, otherwise 0
\n";
echo date("L");"\n";
echo "
\n\n";
echo "15. This will display the full representation of the year with four digits. Example 1993.
\n";
echo date("Y");"\n";
echo "
\n\n";
echo "16. This will display the representation of the year with two digits. Example 93.
\n";
echo date("y");"\n";
echo "
\n\n";
echo "17. This will display the Lowercase Ante meridiem and Post meridiem. Example am or pm.
\n";
echo date("a");"\n";
echo "
\n\n";
echo "18. This will display the Uppercase Ante meridiem and Post meridiem. Example AM or PM.
\n";
echo date("A");"\n";
echo "
\n\n";
echo "19. This will display the 12 hour format time without zeros. Example 1 to 12.
\n";
echo date("g");"\n";
echo "
\n\n";
echo "20. This will display the 24 hour format time without zeros. Example 1 to 23.
\n";
echo date("G");"\n";
echo "
\n\n";
echo "21. This will display the 12 hour format time with zeros. Example 01 to 12.
\n";
echo date("h");"\n";
echo "
\n\n";
echo "22. This will display the 24 hour format time without zeros. Example 01 to 23.
\n";
echo date("H");"\n";
echo "
\n\n";
echo "27. This will display the exact time in the 12 hour format including seconds, including AM or PM.
\n";
echo date("g:i:s A");"\n";
echo "
\n\n";
?>